//判断用户是否拥有按钮权限
let auths;

function getAuths() {
  if (!auths) {
    auths = sessionStorage.getItem("erp_auths");
  }
  return auths;
}
export default function (btn) {
  let rs = getAuths().indexOf(btn) == -1 ? false : true;
  return rs;
}
